#include <stdio.h>
int main(void)
{
	int i,n=0,d[10];
	scanf("%d",&i);
	while (i>0){
		d[n++]=i%2;
		i=i/2;
	}
	for (n--;n>=0;n--)
		printf("%d",d[n]);
	printf("\n");
	return 0;
}